package com.ashin.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("user")
public class User {

    /**
     * 这里需要设置，不然数据库自增没有生效
     */
    @TableId(type = IdType.AUTO, value = "id")
    private Long id;

    private String name;

    private Integer age;

    private String email;

    private Integer deleteFlag;

    private Long tenantId;
}
